package com.zzh.api.base.service;

import com.zzh.api.base.response.BaseResponse;

/**
 * @author zihong.zheng
 * @version 1.0
 * @date 2019/2/8
 * @time 16:42
 * @description
 */
public class BaseApiService {




    public BaseResponse returnSuccess(String data){
        BaseResponse baseResponse = new BaseResponse();
        return  baseResponse.setResultSuccess(data);
    }


    public BaseResponse returnError(String data){
        BaseResponse baseResponse = new BaseResponse();
        return  baseResponse.setResultError(data);
    }


    public BaseResponse returnResultSuccess(){
        BaseResponse baseResponse = new BaseResponse();
        return  baseResponse.setResultSuccess();
    }
}
